package param;

import group.ForgetPwd;
import group.Send;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ForgetParam {

    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空",groups = {ForgetPwd.class, Send.class})
    private String email;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空",groups = {ForgetPwd.class})
    private String newPwd;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空",groups = {ForgetPwd.class})
    private String code;
}
